package com.youmans.userservice.mapper;

import com.youmans.common_utils.config.MybatisPlusRedisCache;
import com.youmans.common_utils.vo.UserForPic;
import com.youmans.userservice.entity.YoumansUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author youmans
 * @since 2022-10-17
 */
@Mapper
@CacheNamespace(implementation= MybatisPlusRedisCache.class,eviction=MybatisPlusRedisCache.class)
public interface YoumansUserMapper extends BaseMapper<YoumansUser> {

    Integer selectCountByUserName(String username);

    YoumansUser selectByName(String username);

    List<UserForPic> selectAllList();
}
